package org.test.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.test.vo.Orders;

import java.util.Date;
import java.util.List;

@Mapper
public interface OrdersMapper{

    //查询所有订单
    List<Orders> getAllOrders();

    //添加订单
    int addOrder(@Param("id")int id, @Param("bookId")int bookId, @Param("bookName")String bookName, @Param("orderNum")int orderNum, @Param("consignee")String consignee, @Param("address")String address, @Param("contactWay")String contactWay, @Param("orderPrice")int orderPrice, @Param("createTime") String createTime);

    //删除订单
    int deleteOrder(@Param("orderId")int orderId);
}
